package com.zhoutian.dao;

import com.github.pagehelper.Page;
import com.zhoutian.pojo.Role;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoleDao {
    public Set<Role> findByUserId(Integer userId);
    public void add(Role role);
    public void setRoleAndPermission(Map map);
    public Page<Role> findByCondition(String queryString);
    public void edit(Role role);
    public Role findById(Integer id);
    public long findCountByRoleId(Integer id);
    public void deleteAssocication(Integer id);
    public void deleteRoleById(Integer id);
    public List<Role> findAll();
    public List<Integer> findPermissionIdsByRoleId(Integer id);
}
